package com.zc.study.thread.多线程第一章节.多线程1_10;

public class Test2 {
    public static void main(String[] args) {
        MyThread3 three = new MyThread3();
        three.setDaemon(true);
        three.start();
        System.out.println("这个线程的名字"+Thread.currentThread().getName());
        try {
            Thread.sleep(15000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("守护线程退出了");
    }
}
